package com.redrose.videodemo.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.youth.banner.loader.ImageLoader;


public class BannerImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        Glide.with(context).load(path).into(imageView);
        LogUtils.i("displyaImage", path+"");
    }

    private static class InstanceHolder {
        private static final BannerImageLoader instance = new BannerImageLoader();
    }

    public static BannerImageLoader getInstance() {
        return InstanceHolder.instance;
    }
}
